package com.dx.order.feign;

import com.dx.model.UserInfo;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * Created by lzh on 2017/10/23.
 */
@FeignClient("user-service")
public interface UserServer {

    @RequestMapping("/getUserById")
    UserInfo getUserById(@RequestParam("userId") String userId);
}
